<!DOCTYPE html>
<%@page import="com.doeis.common.Constant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><%=Constant.LOTTERY_PROJECT_TITLE%></title>
<%@include file="/WEB-INF/page/common/import.jsp"%>

<link rel="stylesheet" href="/static/css/login.css" />
</head>
<body>
	<div class="container">

		<form class="form-signin" action="/user/doRegister" method="post">
			<h3 class="form-signin-heading">注册新用户</h3>
			<input type="text" class="input-block-level" name="username" placeholder="用户名（可填英文昵称或邮箱）"> <input
				type="password" class="input-block-level" name="password" placeholder="密码"> <input type="password"
				class="input-block-level" name="confirm_password" placeholder="再次输入密码"> <input type="text"
				class="input-block-level" name="v_code" placeholder="验证码">
			<div class="control-group">
				<div class="controls">
					<img src="#" id="v_code_img">
				</div>
			</div>
			<button class="btn btn-large btn-primary" type="submit">注册</button>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="login">已有账号？马上去登录→</a>
		</form>
	</div>

	<script type="text/javascript">
		$(function() {
			$("#v_code_img").attr("src", '/user/captcha');
			$("#v_code_img").click(
					function() {
						var v_code_img = $("#v_code_img").attr("src");
						$("#v_code_img").attr('src',
								v_code_img + '?' + Date.parse(new Date()));
					});
		});
	</script>
</body>
</html>